import { createApp } from 'vue'
import { createPinia } from 'pinia'
import TDesign from 'tdesign-vue-next'
import WujieVue from '@/wujie/index'
import router from './router'
import App from './App.vue'
import 'uno.css'
import 'tdesign-vue-next/dist/reset.css'
import 'tdesign-vue-next/es/style/index.css'
import { components, directive, initEnv } from '@common'
import '@common-css'
initEnv(import.meta.env)
window.$router = router
const app = createApp(App)
app.use(createPinia()).use(router).use(TDesign).use(WujieVue)
components.install(app)
Object.keys(directive).forEach((k) => app.directive(k, directive[k]))
app.mount('#app')
